﻿<!DOCTYPE html>

<html>

<head>
    <meta name="viewport" content="width=device-width" />
    <title></title>
    @Scripts.Render("~/Resource/js/fe.head.js")
</head>

<body>
    <div id="app" v-cloak>
        <div class="edit_pagecontainer">
            <div class="edit_formcontainer">
                命名空间：<el-input v-model="namespace"></el-input>
                忽略前缀：<el-input v-model="prefix"></el-input>
            </div>
        </div>
        <div class="edit_opcontainer">
            <el-button type="primary" v-on:click="handleSubmit">确认生成</el-button>
            <el-button v-on:click="close">取 消</el-button>
        </div>
    </div>
</body>
@Scripts.Render("~/Resource/js/fe.foot.js")

<script>
    var pageData = {
        namespace: '',
        prefix: ''
    };

    new Vue({
        el: '#app',
        data: pageData,
        mounted: function () {

        },
        methods: {
            close: function () {
                CloseDialog();
            },
            handleSubmit: function () {
                if (pageData.namespace == "") {
                    OpenAlert('提示', '请输入命名空间')
                } else {
                    CloseDialog(pageData);
                }
            }
        }
    })
</script>

</html>
